package com.yangxiangrice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yangxiangrice.mapper.GrowSeedlingsMapper;
import com.yangxiangrice.pojo.AgItems;
import com.yangxiangrice.pojo.GrowSeedlings;
import com.yangxiangrice.service.GrowSeedlingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @author: shixiaojian
 * @date: 2021年11月16日 17:55
 */
@Service
public class GrowSeedlingsServiceImpl extends ServiceImpl<GrowSeedlingsMapper, GrowSeedlings> implements GrowSeedlingsService {
    @Autowired
    GrowSeedlingsMapper growSeedlingsMapper;

    @Override
    public IPage<GrowSeedlings> seletePage(IPage<GrowSeedlings> page, QueryWrapper wrapper) {
        return growSeedlingsMapper.selectPage(page,wrapper);
    }

    @Override
    public Integer getConsumeNum(String seedName) {
        return growSeedlingsMapper.getConsumeNum(seedName);
    }

}
